<template>
  <div class="myrent-page">
    <!-- 我的收藏 -->
    <van-nav-bar
      title="房屋管理"
      left-arrow
      @click-left="$router.push('/shouye')"
    />
      <Myrention v-for="(item, index) in list" :key="index"
      :item ="item"
      ></Myrention>
  </div>
</template>

<script>
import { getMyrent } from '@/api/other'
import Myrention from '@/components/myrention.vue'
export default {
  name: 'collect-page',
  components: {
    Myrention
  },
  data () {
    return {
      list: []
    }
  },
  async created () {
    const { body } = await getMyrent()
    console.log(body)
    this.list = body
  },
  methods: {
  }
}
</script>

<style lang="less" scoped>

</style>
